home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Human Interface Toolbox / LabelMenu / InitMac.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  2.2 KB  |  69 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        InitMac.h
  3.  
  4.     Contains:    This demonstrates a program with a Finder-like label menu.
  5.                 Each label menu item has a 12x16 pixel 'cicn and the
  6.                 color and name of all the items are updated if the user
  7.                 changes anything in the "Labels" control panel.
  8.                 This also demonstrates how to change a menu tile to an icon.
  9.  
  10.     Written by: David Hayward    
  11.  
  12.     Copyright:    Copyright © 1993-1999 by Apple Computer, Inc., All Rights Reserved.
  13.  
  14.                 You may incorporate this Apple sample source code into your program(s) without
  15.                 restriction. This Apple sample source code has been provided "AS IS" and the
  16.                 responsibility for its operation is yours. You are not permitted to redistribute
  17.                 this Apple sample source code as "Apple sample source code" after having made
  18.                 changes. If you're going to re-distribute the source, we require that you make
  19.                 it clear in the source that the code was descended from Apple sample source
  20.                 code, but that you've made changes.
  21.  
  22.     Change History (most recent first):
  23.                 8/6/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  24.                 4/8/94                          updated project to use the new Universal Header
  25.                                               added routine to change a menu title
  26.                                             added abillity to change Label menu's title to a
  27.                                             small icon (for info on how this is done see IM:Text
  28.                                             page 7-39
  29.  
  30. */
  31.  
  32.  
  33. #ifndef _INITMAC_
  34. #define _INITMAC_
  35.  
  36.  
  37. #ifndef __TYPES__
  38. #include <Types.h>
  39. #endif
  40.  
  41. #ifndef __TRAPS__
  42. #include <Traps.h>
  43. #endif
  44.  
  45.  
  46. /**\
  47. |**| ==============================================================================
  48. |**| PUBLIC FUNCTION PROTOTYPES
  49. |**| ==============================================================================
  50. \**/
  51. short            NumToolboxTraps        ( void ) ;
  52. TrapType        GetTrapType            ( short theTrap ) ;
  53. Boolean            TrapAvailable        ( short theTrap ) ;
  54. Boolean            WNEAvailable        ( void ) ;
  55. void            CheckQuickDraw        ( void ) ;
  56. void            InitToolBox            ( short numberOfMasters ) ;
  57.  
  58. /**\
  59. |**| ==============================================================================
  60. |**| PUBLIC GLOBAL EXTERNS
  61. |**| ==============================================================================
  62. \**/
  63. extern Boolean        WNE_available ;
  64. extern Boolean        HasGWorlds ;
  65. extern Boolean        HasCQD ;
  66.  
  67.  
  68. #endif
  69.